package com.cms.mapper;

import com.cms.pojo.Course;
import com.cms.pojo.Sc;
import com.cms.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper {
    List<Course> selectAll(int id);

    List<Course> selectAll2(int id);

    List<Course> selectScore(int id);

    List<Course> myCourse(int id);

    void selectCourse(Sc sc);

    Course selectById(int id);

    void addSelected(int id);

    void cancelCourse(Sc sc);

    void decreaseSelected(int id);

    void writeScore(@Param("s_id")int s_id, @Param("c_id")int c_id, @Param("score")double score);

    List<Course> allCourse();

    void deleteSelectedCourse(int id);

    void deleteCourse(int id);

    int selectIdByName(String t_name);

    void addCourse(Course course);
}
